package com.swind.fast.modules.app.halali.partner.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import com.swind.fast.modules.app.halali.partner.entity.RestaurantMeal;
import com.swind.fast.modules.app.halali.partner.entity.RestaurantCategory;
import com.swind.fast.modules.app.halali.partner.entity.RestaurantMealCategory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * @Description: 项目
 * @Author: swind
 * @Date:   2021-11-20
 * @Version: V1.0
 */
public interface RestaurantMealMapper extends BaseMapper<RestaurantMeal> {

    @Select("select * from halali_restaurant_meal where restaurant_id=#{restaurantId} order by rank")
    List<RestaurantMeal> getMealList(@Param("restaurantId") String restaurantId);

    @Select("select * from halali_restaurant_category where restaurant_id=#{restaurantId} order by rank")
    List<RestaurantCategory> getRestaurantCategoryList(@Param("restaurantId") String restaurantId);

    @Select("select * from halali_restaurant_meal_category where meal_id=#{mealId}")
    List<RestaurantMealCategory> getRestaurantMealCategoryList(@Param("mealId") String mealId);
}
